package com.javasea.nio.chat.server.module.player.dao;

import com.javasea.nio.chat.server.module.player.dao.entity.Player;
import org.hibernate.HibernateException;
import org.hibernate.SQLQuery;
import org.hibernate.Session;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.repository.CrudRepository;
import org.springframework.orm.hibernate5.HibernateCallback;
import org.springframework.orm.hibernate5.HibernateTemplate;
import org.springframework.stereotype.Component;

import java.sql.SQLException;
import java.util.List;

/**
 * 玩家dao
 * @author -琴兽-
 *
 */
public interface PlayerDao extends CrudRepository<Player, Long> {

    Player findByPlayerName(String playerName);

}
